package org.gp.core.entity.enums;

import lombok.Getter;

/**
 * Created by luoliang on 2017/1/29.
 * 用户兴趣枚举类
 */
@Getter
public enum HobbyEnum {
    JYJH("交友聚会"),
    YYXJ("音乐戏剧"),
    TYYD("体育运动"),
    HWLX("户外旅行"),
    JZGY("讲座公益"),
    QT("其他");

    private final String desc;

    HobbyEnum(String desc) {
        this.desc = desc;
    }

    public String getDesc(String name) {
        String desc = "";
        switch (name) {
            case "JYJH":
                desc = JYJH.getDesc();
                break;
            case "YYXJ":
                desc = YYXJ.getDesc();
                break;
            case "TYYD":
                desc = TYYD.getDesc();
                break;
            case "HWLX":
                desc = HWLX.getDesc();
                break;
            case "JZGY":
                desc = JZGY.getDesc();
                break;
            case "QT":
                desc = QT.getDesc();
                break;
        }

        return desc;
    }
}
